package com.boang.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
  @author: 13813
  @date: 2024/8/9 11:01
*/
@RestController
@RequestMapping("/spu")
public class SpuController {

    @PreAuthorize("hasRole('sys')")
    @RequestMapping("/getSpuList")
    public String getSpuList() {
        return "list";
    }

    @PreAuthorize("hasRole('market')")
    @RequestMapping("/addSpu")
    public String addSpu() {
        return "add";
    }

    @RequestMapping("/removeSpu")
    public String removeSpu() {
        return "removeSpu";
    }
}
